package com.why.entity;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class SearchTrain {

    private Integer page;
    private Integer pageSize;
    private String key;

    private Integer id;

    private String name;

    private Integer beginId;

    private Integer endId;

    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime buyTime;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private LocalDate byTime;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private LocalDate byTime1;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private LocalDate byTime2;

    private Integer price;

    private String begin;

    private String end;
}
